﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using System.Data;
using System.Text;
public partial class admin_UserControl_VolunteerSelecter : System.Web.UI.UserControl
{
    User_Volunteer bll_User_Volunteer = new User_Volunteer();
    Role bll_Role = new Role();
    private string _VolunteerIdList;

    public string VolunteerIdList
    {
        get { return Common.StringDispose.Trim_Right(hfVolunteerIdList.Value,","); }
        set { hfVolunteerIdList.Value = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            UIInit();
        }
    }

    private void UIInit()
    {
        Bind_Repeater();
        hfVolunteerIdList.Value = VolunteerIdList;
    }

    private void Bind_Repeater()
    {
        DataTable dt = bll_User_Volunteer.GetList("").Tables[0];
        Repeater1.DataSource = dt;
        Repeater1.DataBind();
    }
}